import 'package:aihu_getx_app/app/modules/d/d_my/models/user_job_card_resp_vo.dart';
import 'package:aihu_getx_app/app/modules/d/d_my/models/user_profile_resp_vo.dart';
import 'package:aihu_getx_app/providers/http_provider.dart';

class DMyProvider {
  static Future<UserProfileRespVO> getUserInfo() async {
    var response = await Http.get(
      "/system/user/profile/get",
      fromJsonT: (json) {
        return UserProfileRespVO.fromJson(json);
      },
    );
    return Future(() => response);
  }

  static Future<List<UserJobCardRespVO>> getMyUserJobCard() async {
    var response = await Http.getList<UserJobCardRespVO>(
      "/system/user-job-card/my",
      fromJsonT: (json) {
        return UserJobCardRespVO.fromJson(json);
      },
    );
    return Future(() => response);
  }
}
